package com.sloera.gamestart.taobao;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import androidx.annotation.Nullable;

import com.sloera.gamestart.R;

public class AddressActivity extends Activity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_relative_taobao);
        Intent intent = getIntent();
        Bundle bundle = intent.getExtras();
        String name = bundle.getString("name");
        String tel = bundle.getString("tel");
        String email = bundle.getString("email");
        String site = bundle.getString("site1") + bundle.getString("street") + bundle.getString("detail");
        TextView tv_name = findViewById(R.id.address_name);
        TextView tv_tel = findViewById(R.id.tel);
        TextView tv_site = findViewById(R.id.address_site);
        tv_name.setText(name);
        tv_tel.setText(tel);
        tv_site.setText(site);
    }
}
